package org.example.service;


import com.baomidou.mybatisplus.extension.service.IService;
import org.example.dto.SelectUserRoleResultDto;
import org.example.entity.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 
 * @since 2025-03-27
 */
public interface IUsersService extends IService<User> {

    User FindUser(User usr);

    User FindUserByPhone(String phone);

    List<SelectUserRoleResultDto> selectUserRole(String phone);

    UserDetails loadUserByUsername(String s) throws UsernameNotFoundException;


    int  setUserPhone(String phone, Integer id);
}
